
<script setup lang="ts">
import { ConfigProvider } from "vant";
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup
import { PropType } from "vue";
import { useStore } from "/@/store";
// localStorage.clear()
const store = useStore();
//临时登录
store.dispatch("systems/getUserTempLogin");
//获取系统信息
store.dispatch("systems/getSystemInfoSync");
//获取用户信息
store.dispatch("users/setUserInfo");

const themeVars = {
  primaryColor: "#FFA419",
  rateIconFullColor: "#FFA419",
  sliderActiveBackgroundColor: "#FFA419",
  buttonPrimaryBorderColor: "#FFA419",
  buttonPrimaryBackgroundColor: "#FFA419",
  buttonNormalFontSize: "16px",
  dropdownMenuTitleActiveTextColor: "#707070",
  dropdownMenuOptionActiveColor: "#FFA419",
  dropdownMenuTitleTextColor: "#707070",
  cellTextColor: "#323233",
  searchInputHeight: "38px",

  // checkBox
  checkboxCheckedIconColor: "#FFA419",
  //radio
  radioCheckedIconColor: "#FFA419",
  // tabs
  tabFontSize: "16px",
  tabTextColor: "#707070",
  tabActiveTextColor: "#333333",
  tabsBottomBarWidth: "30px",
  tabsBottomBarColor: "#FEA419",

  //cell
  // cellVerticalPadding: '12px',
  //cell
  // fieldWordLimitLineHeight: '40px',
  //form
  fieldLabelColor: "#343741",

  //骨架屏 背景色
  // skeletonRowBackgroundColor: '#F5F5F5'

  //dialog dialogConfirmButtonTextColor
  dialogConfirmButtonTextColor: "#FEA419",

  //tabBar
  tabbarItemTextColor: "#979797",
  tabbarItemActiveColor: "#979797",

  paginationItemDefaultColor: "#FFDC4E",
  // paginationDescColor: "#FFA419",
};
</script>

<template>
  <config-provider :theme-vars="themeVars">
    <router-view></router-view>
  </config-provider>
</template>

<style lang="scss">
@import "src/css/set-vant";
@import "src/css/index";

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  // text-align: center;
  color: #323233;
}

body {
  background: #f1f4f9;
  // letter-spacing: 0.2px;
}

html,
body {
  scroll-behavior: smooth;
}
.van-pagination__item{
  color: #191446 !important;
}
</style>
